<?php
/* 
 * Author : Novi Setiani
 * Viewer : Detail Notifikasi Kegiatan
 */
if (!empty ($detail)){
 echo "<h2>Detail Notifikasi</h2>";
?>
<table>
    <tr>
        <td>Nama Kegiatan</td>
        <td>:</td>
        <td><?php echo $detail->activityName;?></td>
    </tr>
    
     <tr>
        <td>Ruangan</td>
        <td>:</td>
        <td><?php echo $detail->roomID;?></td>
    </tr>
     <tr>
        <td>Hari </td>
        <td>:</td>
        <td><?php echo $detail->day;?></td>
    </tr>
        <tr>
        <td>Tanggal  </td>
        <td>:</td>
        <td><?php echo $detail->startDate;?>-<?php echo $detail->endDate;?></td>
    </tr>
     <tr>
        <td>Waktu</td>
        <td>:</td>
        <td><?php echo $detail->startTime;?>-<?php echo $detail->endTime;?></td>
    </tr>
     <tr>
        <td>PJ Kegiatan</td>
        <td>:</td>
        <td><?php echo $detail->pjKegiatan;?></td>
    </tr>
</table>
<?php
 if (!empty($peserta)) {
     $i = 1;
     echo "<h2>Daftar Peserta: </h2>";
     foreach ($peserta as $row){
         echo $i.". ".$row['name']."<br>";
         $i++;
         }
 }
}else
    echo "Kegiatan dibatalkan oleh PJ Kegiatan.";
?>
